package service;

import java.util.List;

import pojo.Message;

public interface MessageServiceI {
	

	//查询用户全部消息/包括未读，特殊标记
	public List<Message> FindAllMessage(Integer userId);
	
	//删除消息/删除全部消息
	public boolean RemoveMessageByUserId(Integer userId,String flag);
	
	//单个删除/根据messageid
	public boolean removeMessageByMessageId(Integer messageId);
	
	//判断用户是否有未读消息
	public boolean HaveNoReadMessage(Integer userId);
	
	//插入消息
	public boolean MakeMessage(Integer suerId,Integer ruserId,Integer flag,Integer essayId);

	//插入管理员返回的消息
	public boolean MakeMessageByManager(Integer suserId,Integer ruserId,Integer flag,Integer essayId,String context);

	//插入关注消息
	public boolean MakeAttentionMessage(Message message);

	
}
